package com.zb.vo;

import com.zb.entity.AccounLoginInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Author WEN
 * @Date 2023/10/25 0025
 **/
@Data
@Accessors(chain = true)
@ApiModel("工单费用记录对象")
public class WorkFeeLogVo {

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "工单ID")
    private Long workId;

    @ApiModelProperty(value = "工单费用表ID")
    private Long workFeeId;

    @ApiModelProperty(value = "创建人员ID")
    private Long createEmpId;

    @ApiModelProperty(value = "创建人员")
    private String createEmp;

    @ApiModelProperty(value = "事件")
    private String event;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "附件")
    private List<String> images;

    public WorkFeeLogVo() {
    }

    public WorkFeeLogVo(Long custAccId, Long workId, Long workFeeId, Long createEmpId, String createEmp, String event, String content, List<String> images) {
        this.custAccId = custAccId;
        this.workId = workId;
        this.workFeeId = workFeeId;
        this.createEmpId = createEmpId;
        this.createEmp = createEmp;
        this.event = event;
        this.content = content;
        this.images = images;
    }

    public WorkFeeLogVo(Long custAccId, Long workId, Long workFeeId, Long createEmpId, String createEmp, String event, String content) {
        this.custAccId = custAccId;
        this.workId = workId;
        this.workFeeId = workFeeId;
        this.createEmpId = createEmpId;
        this.createEmp = createEmp;
        this.event = event;
        this.content = content;
    }

    public WorkFeeLogVo(Long custAccId, Long workId, Long workFeeId, Long createEmpId, String createEmp, String event) {
        this.custAccId = custAccId;
        this.workId = workId;
        this.workFeeId = workFeeId;
        this.createEmpId = createEmpId;
        this.createEmp = createEmp;
        this.event = event;
    }

    public WorkFeeLogVo(AccounLoginInfo logintInfo, Long workId, Long workFeeId, String event, String content, List<String> images) {
        this.custAccId = logintInfo.getCustAccId();
        this.workId = workId;
        this.workFeeId = workFeeId;
        this.createEmpId = logintInfo.getId();
        this.createEmp = logintInfo.getName();
        this.event = event;
        this.content = content;
        this.images = images;
    }

    public WorkFeeLogVo(AccounLoginInfo logintInfo, Long workId, Long workFeeId, String event, String content) {
        this.custAccId = logintInfo.getCustAccId();
        this.workId = workId;
        this.workFeeId = workFeeId;
        this.createEmpId = logintInfo.getId();
        this.createEmp = logintInfo.getName();
        this.event = event;
        this.content = content;
    }

    public WorkFeeLogVo(AccounLoginInfo logintInfo, Long workId, Long workFeeId, String event) {
        this.custAccId = logintInfo.getCustAccId();
        this.workId = workId;
        this.workFeeId = workFeeId;
        this.createEmpId = logintInfo.getId();
        this.createEmp = logintInfo.getName();
        this.event = event;
        this.content = "";
    }
}
